#define _CRT_SECURE_NO_WARNINGS 1

#define offsetof(stu,count) ((int)(&(((stu*)0)->count)))

#include <stdio.h>

int main()
{
	struct stu 
	{
		char name[5];
		int age;
		int score;
		char size;
		char s;
		int arr[10];
		char arrc;
	};
	struct stu s = { "name",16,80 };
	printf("%d\n", offsetof(struct stu, name));
	printf("%d\n", offsetof(struct stu, age));
	printf("%d\n", offsetof(struct stu, score));
	printf("%d\n", offsetof(struct stu, size));
	printf("%d\n", offsetof(struct stu, s));
	printf("%d\n", offsetof(struct stu, arr));
	printf("%d\n", offsetof(struct stu, arrc));
	return 0;
}